package com.trsj.lnsj.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.trsj.lnsj.entity.ActivityDTO;


@Mapper
public interface ActivityMapper {

    public List<ActivityDTO> selectActivityInfo(ActivityDTO act);

    public List<ActivityDTO> selectCollectionActivityInfo(@Param("userId")long userId,@Param("type")String type);

    public void saveUserActivity(@Param("happyNo")String happyNo, @Param("actid")String actid);

    public List<ActivityDTO> getUserJoinActivityInfo(@Param("happyNo")String happyNo, @Param("joinType")short joinType);

    public int Signup(@Param("id")Long id,@Param("persons") Integer persons);
    
    public int unSignup(@Param("id")Long id,@Param("persons") Integer persons);
    public List<ActivityDTO> getFriendActivity(@Param("happyNo")String happyNo);
    
   public List<ActivityDTO> selectActivity(@Param("params") Map<String,Object> params);
   
   public List<ActivityDTO> moreActivity(@Param("activityId")Long activityId,@Param("happyNo")String happyNo,@Param("start")Integer start,@Param("end")Integer end);
}